<?php
session_start();
?>


<?php
$username = $_SESSION['username'];
if($username==null || $username== ""|| $username == "")
{
	header('Location: http://localhost/checklist/php/login.php');
}

?>


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title></title>
</head>
<body bgcolor="AliceBlue">
<form method="post" action="saveDesignNoteResponse.jsp" >
<table border="1" bordercolor="black">
<tr><th colspan="2">Please fill the design Note Template</th></tr>
<tr><th colspan="1">Design Notes</th> <th >Comments</th></tr>
<?php

$crno=$_SESSION['crno'];
DesignNote dn=null;
if(crno==null || crno.equals("") || crno.equals(" "))
{
	dn=new DesignNote("dummy");
}
else
{
	dn=new DesignNote(crno);
}

dn.loadDetails();
Vector<String> note=dn.getDesignNotes();
Vector<String> description=dn.getDescription();
Vector<String> resp=dn.getResponse();
int i=0;
String select="";
while(i < note.size())
{
	select=resp.elementAt(i);
	%>
	<tr><td><b><%=note.elementAt(i) %></b><br/><%=description.elementAt(i) %></td>
	<td><textarea id="resp<%=i %>" name="resp<%=i %>" ><%=select %></textarea></td>
	</tr>
	<%
	i++;
}
%>
</table>
<br/>
<input type="submit" value="Save"  >
</form>
</body>
</html>